
// function add(num1:number, num2: number): {name:string, age:number} {
//   let oo:{age:number}
//   oo = {
//     age: num1 + num2
//   }
//   return oo
// }

let func4 = () => 1
let func5: (num1: number, num2: number) => number
func5 = (a: number, b: number) => a + b
console.log(func5(1, 2))

let arr3: number[] = [1, 2, 3, 5, 77, 4, 10, 7]
arr3.sort((a, b) => {
  return a - b
})
console.log(arr3)
let state: 1 | 2 | 3 | 4 = 2
console.log(state)
let arr6: [string, string][] = [ ['a', 'b'], ['c', 'd'] ]
console.log(arr6)
